import { Request, Response, NextFunction } from 'express'
import {ISliderDocument,Slider}  from "../models/slider"

export const list = async (req: Request, res: Response, next: NextFunction) => {
    let sliders:ISliderDocument[]= await Slider.find();
    res.json({ success: true, data: sliders });
}